package cate.common.table.res.eathero.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.eathero.row.EatHeroRewardRow;

import java.util.List;

public class EatHeroRewardSheet extends ESheet<EatHeroRewardRow> {
    @Override
    public String getSheetName() {
        return "阶段奖励";
    }

    public EatHeroRewardRow onGetRow(int level, int group) {
        for (EatHeroRewardRow row : list) {
            if (row.level == level && row.groupId == group) {
                return row;
            }
        }
        return null;
    }
}
